//
//  ViewController.m
//  storyboard
//
//  Created by Reeves Goo on 16/3/29.
//  Copyright © 2016年 ReevesGoo. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor redColor];
    // Do any additional setup after loading the view, typically from a nib.
}




- (IBAction)buttonClick:(id)sender {
    
    NSLog(@"come here");
    UIStoryboard *sb =[UIStoryboard storyboardWithName:@"secondViewController" bundle:nil];
    UIViewController *vc = sb.instantiateInitialViewController;

    
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationDuration:0.75];
    [self.navigationController pushViewController:vc animated:YES];
    
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
    [UIView commitAnimations];
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
